
/**
 * C++17 以后
 */

#include <iostream>
#include <any>

int main(){
    std::any a = 10;
    a = 20;
    int *pi = std::any_cast<int>(&a);
    std::cout << *pi << std::endl;


    return 0;    
}

